/*$Id: TableModelServiceAsync.java 267 2008-04-30 14:42:06Z lrsmith $*/
package com.leetech.gwt.client;


import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * This interface is used by the client to make RPC calls to servlets to
 * to populate {@link nreldata.nbc.gwt.client.scrolltable.RemoteTableModel} with
 * data.
 *
 * @author lrsmith
 *
 */
public interface TableModelServiceAsync {

    // Static initialization-------------------------------------------
    // Instance variables----------------------------------------------
    // Constructors----------------------------------------------------
    // Methods---------------------------------------------------------
    /**
     * Requests additional rows from the server to display to the client.
     *
     * @param request
     *            an object containing the first row requested and the number of
     *            rows requested.
     * @param callback
     *            callback function containing a RemoteTableModel.Response
     *            object.
     */
    void requestRows(RemoteTableModel.Request request, AsyncCallback callback);


    // Inner Classes --------------------------------------------------
}
